import request from "@/utils/request"
export default {
    //登录请求接口
    loginForm(data = {}) {
        return request({
            url: '/api/users/login',
            method: 'post',
            data: data
        })
    },
    
    //注册接口
    registerData(data = {}) {
        return request({
            url: '/api/users/register',
            method: 'post',
            data: data
        })
    },

    //判断用户名是否存在
    registerName(data={}){
        return request({
            url: '/api/users/findUserName',
            method: 'post',
            data: data
        })
    }

}
